<?php
if (get_magic_quotes_gpc() == 1) {

$_REQUEST = array_map("stripslashes", $_REQUEST);
$_GET = array_map("stripslashes", $_GET);
//$_POST = array_map("stripslashes", $_POST);
$_COOKIE = array_map("stripslashes", $_COOKIE);

}
set_magic_quotes_runtime(0);

$config ['domain'] = "http://phunu.com";
$config ['upload_dir'] = $_SERVER ['DOCUMENT_ROOT'].'/uploads';
//$config ['upload_dir'] = BASE_PATH.'/uploads';

//database

$config['db_host']       ='localhost';
$config['db_username']   ='manhnv';
$config['db_password']   ='sa';
$config['db_database']   ='db_bantinnhadat';

//admin
$config ['admin_root_path'] = '/admin';
$config ['admin_section'] = 'cp-admin';
$config ['admin_document_root'] = $_SERVER ['DOCUMENT_ROOT'] . $config ['admin_root_path'];

$config ['admin_theme'] = "/default";
$config ['admin_theme_path'] = $_SERVER ['DOCUMENT_ROOT']."/admin/themes";
$config ['admin_function_path'] = $_SERVER ['DOCUMENT_ROOT']."/admin/function";

$config ['admin_js_url'] = $config ['domain'] . "/admin/themes".$config ['admin_theme']."/js";
$config ['admin_css_url'] = $config ['domain'] . "/admin/themes".$config ['admin_theme']."/css";
$config ['admin_images_url'] = $config ['domain'] . "/admin/themes".$config ['admin_theme']."/images";

//client
$config ['client_root_path'] = '/client';
$config ['client_document_root'] = $_SERVER ['DOCUMENT_ROOT'] . $config ['client_root_path'];
//$config ['client_document_root'] = BASE_PATH . $config ['client_root_path'];

$config ['client_theme'] = "/default";
$config ['client_theme_path'] = $_SERVER ['DOCUMENT_ROOT']."/client/themes";
//$config ['client_theme_path'] = BASE_PATH."/client/themes";
$config ['client_function_path'] = $_SERVER ['DOCUMENT_ROOT']."/client/function";
//$config ['client_function_path'] = BASE_PATH."/client/function";

$config ['client_js_url'] = $config ['domain'] . "/client/themes".$config ['client_theme']."/js";
$config ['client_css_url'] = $config ['domain'] . "/client/themes".$config ['client_theme']."/css";
$config ['client_images_url'] = $config ['domain'] . "/client/themes".$config ['client_theme']."/images";
$config ['client_flash_url'] = $config ['domain'] . "/client/themes".$config ['client_theme']."/flash";
$config ['client_xml_url'] = $config ['domain'] . "/client/themes".$config ['client_theme'];

$config ['site_title']='Ban Tin Nha Dat - Tin tức bất động sản Việt Nam';
$config ['site_description']='Ban Tin Nha Dat - Kenh thông tin nha dat bat dong san Viet Nam. Thong tin du an Bat dong san, thue nha dat, chinh sach Bat dong san, tu van bat dong san Vietnam...';
$config ['site_keyword']='Bat dong san, nha dat, bat dong san Viet Nam, Nha dat Viet Nam, thi truong nha dat, thi truong bat dong san Viet Nam, du an bat dong san, chung cu cao cap, biet thu, nha lien ke';

$config ['page']=1;//page start
$config ['total_article_on_category']=10;//numbers of rows show on category
$config ['total_article_on_admin']=20;//numbers of rows show on admin
$config ['total_article_on_search']=15;//numbers of rows show on search

include BASE_PATH."/config/mysql.php";
$DB = new database();
$DB -> db = array('host'=>$config['db_host'],'user'=>$config['db_username'],'pass'=>$config['db_password'],'db'=>$config['db_database']);
$DB->connect();
$DB->query("set names utf8");
?>
